//Main application
(function(ns) {
    ns.main = function($rootScope) {
     $rootScope.state = 1;
     var app= {};

     app.changeState = function (state) {
        $rootScope.state = state;
     };

     return app;
    }
})(org.spindle.soasuite);



//Header
(function(ns) {
    ns.header= function($scope, app) {
        $scope.changeStateTo = function(i) {
            console.log(app);
            app.changeState(i);
        }

    }
})(org.spindle.soasuite);


//Header
(function(ns) {
    ns.project= function($scope) {
        $scope.projectName = "projectName";
        $scope.projectType = 1;

    }
})(org.spindle.soasuite);
